home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / TEST / TIMETEST.C < prev    next >
C/C++ Source or Header  |  1997-03-31  |  332b  |  22 lines

  1. #include <qlib.h>
  2. #include <time.h>
  3. #include <stdio.h>
  4. #include <conio.h>
  5. #include <dos.h>
  6.  
  7. void main(void) {
  8.   dword a;
  9.  
  10.   struct time t;
  11.   struct date d;
  12.  
  13.   while (!kbhit()) {
  14.     _time(&a);
  15.     printf("%12d %d\n",clock(),a);
  16.     getdate(&d);
  17.     gettime(&t);
  18.     printf("%t%t %d\n",dostounix(&d,&t));
  19.   }
  20. }
  21.  
  22.